<?php
//Svetlana Gornostajeva, Student 13, reedeti 17.15-21.15, 09.10.2011

$actors[]="Al Pacino";
$actors[]="Arnold Schwarzenegger";
$actors[]="Ben  Affleck";
$actors[]="Bill Cosby";
$actors[]="Brad Pitt";
$actors[]="Bruce Willis";
$actors[]="Hugh Grant";
$actors[]="Jackie Chan";
$actors[]="Matt Damon";
$actors[]="Mel Gibson";
echo "<pre>";
print_r($actors);

echo "<p>";
for ($i=sizeof($actors)-1; $i>=0; $i--)
{
  echo $$actors[$i];
  if ($i != 0)
  {
    echo " ";
  }
} 

?>